package 笔试;

import java.util.Arrays;
import java.util.Collections;

public class 最大正整数 {
    public int maxIntValue (int[] arrs) {
        // write code here
        Integer[] arr = new Integer[arrs.length];
        for(int i = 0; i < arrs.length; i++) {
            arr[i] = arrs[i];
        }
        Arrays.sort(arr, Collections.reverseOrder());
        int ans = 0;
        for(int i = 0; i < arr.length; i++) {
            ans = ans * 10 + arr[i];
        }
        return ans;
    }
}
